#define _crt_secure_no_warnings 1
#include<iostream>

using namespace std;

inline void scan_d(int& num)
{
	char in;
	in = getchar();
	if (in == eof) return;
	while (in != '-' && (in < '0' || in>'9')) in = getchar();
	if (in == '-') { num = 0; }
	else num = in - '0';
	while (in = getchar(), in >= '0' && in <= '9') {
		num *= 10;
		num += in - '0';
	}
	return;
}

int main()
{
	ios::sync_with_stdio(false);
	cin.tie(0);

	int n, t;
	cin >> n;
	int arr[101] = { 0 };
	while (n--)
	{
		scan_d(t);
		arr[t]++;
	}
	int a = 0, b = 0, c = 0, d = 0, e = 0;
	int i = 0;
	for (; i < 60; i++)
		e += arr[i];
	for (; i < 70; i++)
		d += arr[i];
	for (; i < 80; i++)
		c += arr[i];
	for (; i < 90; i++)
		b += arr[i];
	for (; i <= 100; i++)
		a += arr[i];

	printf("%d %d %d %d %d", a, b, c, d, e);

	return 0;
}



#include<stdio.h>
inline void scan_d(int* num)
{
	char in;
	in = getchar();
	if (in == eof) return;
	while (in != '-' && (in < '0' || in>'9')) in = getchar();
	if (in == '-') { *num = 0; }
	else *num = in - '0';
	while (in = getchar(), in >= '0' && in <= '9') {
		*num *= 10, * num += in - '0';
	}
	return;
}
int a[120];
int main()
{
	int a = 0, b = 0, c = 0, d = 0, e = 0;
	int n = 0, score, i = 0;
	scan_d(&n);
	for (i = 1; i <= n; i++)
	{
		scan_d(&score);
		a[score]++;
	}
	i = 0;
	for (; i < 60; i++)
		e += a[i];
	for (; i < 70; i++)
		d += a[i];
	for (; i < 80; i++)
		c += a[i];
	for (; i < 90; i++)
		b += a[i];
	for (; i <= 100; i++)
		a += a[i];

	printf("%d %d %d %d %d", a, b, c, d, e);
	return 0;
}


